package com.dingreading.cloud.web.dto;

import com.mybatisflex.annotation.RelationOneToMany;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 好读之星-年级和书籍
 */
@Data
public class ReadstarGradeBookDto implements Serializable {

    private Integer grade;

    private String gradeName;

    @RelationOneToMany(
            selfField = "grade",
            targetTable = "readstar_book",
            targetField = "grade",
            valueField = "bookName",
            extraCondition = "(enabled=1)"
    )
    List<String> bookList;

}
